home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / !Interfaces / Universal Interfaces 2.0a1 / PInterfaces / Notification.p < prev    next >
Encoding:
Text File  |  1994-07-17  |  2.2 KB  |  100 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Notification.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a1.  ETO #15, MPW prerelease.  Sunday, July 17, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT Notification;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __NOTIFICATION__}
  27. {$SETC __NOTIFICATION__ := 1}
  28.  
  29. {$I+}
  30. {$SETC NotificationIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {    ConditionalMacros.p                                            }
  38.  
  39. {$IFC UNDEFINED __OSUTILS__}
  40. {$I OSUtils.p}
  41. {$ENDC}
  42. {    MixedMode.p                                                    }
  43.  
  44. {$PUSH}
  45. {$ALIGN MAC68K}
  46. {$LibExport+}
  47.  
  48. TYPE
  49.     NMRec = RECORD
  50.         qLink:                    QElemPtr;                                {next queue entry}
  51.         qType:                    INTEGER;                                {queue type -- ORD(nmType) = 8}
  52.         nmFlags:                INTEGER;                                {reserved}
  53.         nmPrivate:                LONGINT;                                {reserved}
  54.         nmReserved:                INTEGER;                                {reserved}
  55.         nmMark:                    INTEGER;                                {item to mark in Apple menu}
  56.         nmIcon:                    Handle;                                    {handle to small icon}
  57.         nmSound:                Handle;                                    {handle to sound record}
  58.         nmStr:                    StringPtr;                                {string to appear in alert}
  59.         nmResp:                    UniversalProcPtr;                        {pointer to response routine}
  60.         nmRefCon:                LONGINT;                                {for application use}
  61.     END;
  62.     NMRecPtr = ^NMRec;
  63.  
  64.     NMProcPtr = ProcPtr;  { PROCEDURE NM(nmReqPtr: NMRecPtr); }
  65.     NMUPP = UniversalProcPtr;
  66.  
  67. CONST
  68.     uppNMProcInfo = $000000C0; { PROCEDURE (4 byte param); }
  69.  
  70. FUNCTION NewNMProc(userRoutine: NMProcPtr): NMUPP;
  71.     {$IFC NOT GENERATINGCFM }
  72.     INLINE $2E9F;
  73.     {$ENDC}
  74.  
  75. PROCEDURE CallNMProc(nmReqPtr: NMRecPtr; userRoutine: NMUPP);
  76.     {$IFC NOT GENERATINGCFM}
  77.     INLINE $205F, $4E90;
  78.     {$ENDC}
  79. { ------------------ }
  80.  
  81. FUNCTION NMInstall(nmReqPtr: NMRecPtr): OSErr;
  82.     {$IFC NOT GENERATINGCFM}
  83.     INLINE $205F, $A05E, $3E80;
  84.     {$ENDC}
  85. FUNCTION NMRemove(nmReqPtr: NMRecPtr): OSErr;
  86.     {$IFC NOT GENERATINGCFM}
  87.     INLINE $205F, $A05F, $3E80;
  88.     {$ENDC}
  89.  
  90. {$ALIGN RESET}
  91. {$POP}
  92.  
  93. {$SETC UsingIncludes := NotificationIncludes}
  94.  
  95. {$ENDC} {__NOTIFICATION__}
  96.  
  97. {$IFC NOT UsingIncludes}
  98.  END.
  99. {$ENDC}
  100.